﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JoinOutList.aspx.cs" Inherits="Report_JoinOutList" %>

<%@ Register Src="../Storage/Position.ascx" TagName="Position" TagPrefix="uc1" %>
<%@ Register Src="../Control/getDataTime.ascx" TagName="getDataTime" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>出库入库报表设置</title>
    <link href="../css/css.css" rel="stylesheet" type="text/css" />

    <script src="../js/WdatePicker.js"></script>
      
      <script language="JavaScript" type="text/javascript">
        window.onload = function() {
            var a = document.getElementById("loading");
            a.parentNode.removeChild(a);
        }
        document.write('<div id="loading" style="line-height:122px;"><table cellpadding="0" width="100%"><Tr><Td align="center" height="500" valign="middle"><img src="../images/loading.gif"></td></tr></table></div>');
    

      </script>


</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td style="height: 30px">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../images/tab_03.gif); background-repeat: repeat-x;
                                width: 12px;">
                                &nbsp;
                            </td>
                            <td style="background-image: url(../images/tab_05.gif); background-repeat: repeat-x;
                                height: 30px;">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 46%; vertical-align: middle;">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td style="width: 5%; vertical-align: middle;">
                                                        <img src="../images/tb.gif" width="16" height="16" />
                                                    </td>
                                                    <td style="width: 95%;">
                                                        <span>你当前的位置</span>：报表管理-入\出库查询
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="54%">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="16" style="background-image: url(../images/tab_07.gif); height: 30px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../images/tab_12.gif); width: 8px;">
                                &nbsp;
                            </td>
                            <td>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #b5d6e6;">
                                    <tr>
                                        <td style="padding: 2px;">
                                            <table width="100%" cellspacing="0" cellpadding="0" border="1" bordercolordark="#ffffff"
                                                bordercolorlight="#b5d6e6">
                                                <tr>
                                                    <td style="width: 70px; height: 30px;" align="right">
                                                        物料编号：
                                                    </td>
                                                    <td style="width: 170px;">
                                                        <asp:TextBox ID="txtMat_Code" runat="server" Style="width: 150px; height: 14px; border: solid 1px #b5d6e6;
                                                            font-size: 9pt;"></asp:TextBox>
                                                    </td>
                                                    <td style="width: 70px; height: 30px;" align="right">
                                                        物料名称：
                                                    </td>
                                                    <td style="width: 170px;">
                                                        <asp:TextBox ID="txtMat_Name" runat="server" Style="width: 150px; height: 14px; border: solid 1px #b5d6e6;
                                                            font-size: 9pt;"></asp:TextBox>
                                                    </td>
                                                    
                                                    <td style="width: 350px; padding-top: 1px;">
                                                        <uc2:getDataTime ID="getDataTime1" runat="server" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    
                                                    <td style="width: 70px; height: 30px;" align="right">
                                                        &nbsp; &nbsp;
                                                    </td>
                                                    <td style="width: 120px; padding-left: 2px;">
                                                        &nbsp; &nbsp;
                                                    </td>
                                                    <td style="width: 70px;" align="right">
                                                       &nbsp; &nbsp;
                                                    </td>
                                                    <td style="width: 170px;">
                                                        &nbsp; &nbsp;
                                                    </td>
                                                    
                                                    <td style="padding-top: 1px;">
                                                        <asp:ImageButton ImageUrl="../images/btn/btn_Search.gif" Width="63" ID="ibtnSearch"
                                                            runat="server" OnClick="ibtnSearch_Click" />
                                                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                                        <asp:ImageButton ImageUrl="../images/btn/btn_Excel.gif" Width="65" ID="ibtnExcel"
                                                            runat="server" OnClick="ibtnExcel_Click" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="padding: 2px;">
                                            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                <tr>
                                                    <td align="left" id="hei" valign="top">
                                                        <div id="heidiv" style="margin-left: 0px; margin-top: 3px; width: 100%;height:400px; overflow-x: auto;
                                                            overflow-y: auto; ">
                                                            <script language="JavaScript" type="text/javascript">
                                                                function idheight() {
                                                                    var vheight = document.documentElement.clientHeight - 136;
                                                                    document.getElementById("hei").style.height = vheight;
                                                                    document.getElementById("heidiv").style.height = vheight - 10;
                                                                    setTimeout(function() { idheight(); }, 10);
                                                                }
                                                                idheight();
                                                            </script>


                                                            <asp:GridView ID="gv" runat="server" AutoGenerateColumns="False" Width="98.5%" BorderWidth="1px"
                                                                BorderColor="#B5D6E6" CellPadding="0" AllowPaging="true" PageSize="100" 
                                                                onpageindexchanging="gv_PageIndexChanging" style="margin-top: 48px">
                                                                 <%--<PagerStyle CssClass="dg_pager" />--%>
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="编号">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="labCodeType" runat="server" Text="<%#Container.DataItemIndex+1%>"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle Width="30" />
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="Mat_Code" HeaderText="物料编码">
                                                                        <ItemStyle Width="80" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField DataField="Mat_Name" HeaderText="物料名称">
                                                                        <ItemStyle Width="200" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField DataField="Unit_Base" HeaderText="单位">
                                                                        <ItemStyle Width="40" />
                                                                    </asp:BoundField>

                                                                    <asp:BoundField DataField="CC" HeaderText="入/出库">
                                                                        <ItemStyle Width="40" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField DataField="Num" HeaderText="单据数量">
                                                                        <ItemStyle Width="50" HorizontalAlign="Left" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField DataField="Act_Num" HeaderText="实际数量">
                                                                        <ItemStyle Width="50" HorizontalAlign="Left" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField DataField="YNUM" HeaderText="数量差">
                                                                        <ItemStyle Width="50" HorizontalAlign="Left" />
                                                                    </asp:BoundField>
                                                                   
                                                                    <asp:BoundField DataField="OID" HeaderText="WMS操作用户">
                                                                        <ItemStyle Width="80" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField DataField="CDT" HeaderText="操作时间">
                                                                        <ItemStyle Width="120" />
                                                                    </asp:BoundField>
                                                                </Columns>
                                                                <HeaderStyle HorizontalAlign="Center" CssClass="gvHeader" />
                                                                <RowStyle CssClass="gvRow" HorizontalAlign="Center" />
                                                            </asp:GridView>
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td style="background-image: url(../images/tab_15.gif); width: 8px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="background-image: url(../images/tab_19.gif); height: 35px;">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="width: 12px; height: 35px;">
                                <img src="../images/tab_18.gif" width="12" height="35" />
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td width="16">
                                <img src="../images/tab_20.gif" width="16" height="35" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
